import {
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Icon,
    Tab,
    Tabs,
    Slider,
    Toast,
    Image as VanImage,
    Lazyload,
    Popup,
    Search,
    Loading,
    Skeleton,
    ShareSheet,
    Dialog 

} from 'vant'

const vantComponents = [
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Icon,
    Tab,
    Tabs,
    Slider,
    Toast,
    VanImage,
    Lazyload,
    Popup,
    Search,
    Loading,
    Skeleton,
    ShareSheet,
    Dialog 

]

export default {
    install(App:any) {
        vantComponents.forEach(Components => {
            App.use(Components)
        })
    }
}
